package com.foreknow.demo4;

public class Penguin extends Pet{

    @Override
    public void toHospital() {
        this.setHealth(60);

    }

    @Override
    public void eat() {
        System.out.println("吃吃吃");
    }

    public void swimming(){
        System.out.println("swimming......");
    }
}
